package autowired.controller.impl;

import autowired.bean.User;
import autowired.controller.UserController;
import autowired.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * @author ddy
 * @create 2020-08-14 19:45:37
 */
@Controller
public class UserControllerImpl implements UserController {
    @Autowired
    UserService userService;
    @Override
    public void addC(User user) {
        System.out.println("controller......");
        userService.addS(user);
    }
}
